package com.bonc.cq.cloud;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
import org.springframework.context.ApplicationContext;

/**
 * @author fengyong
 * @version V1.0
 * @Title:
 * @Description:
 * @date 2019-07-04 10:18
 */
@SpringBootApplication
@EnableEurekaServer
public class EurekaCenterApplication extends SpringBootServletInitializer {
    private static final Logger log = LoggerFactory.getLogger(EurekaCenterApplication.class);
    public static void main(String[] args) {
        log.info("Begin to start the euruka server application......");
        ApplicationContext context = SpringApplication.run(EurekaCenterApplication.class, args);
        log.info("......The euruka server application has been started!" + context.getApplicationName());
    }

}
